<?php
include_once('db.php');
$pid = $_POST["pid"];
$sid = $_POST["sid"];
$sql = "select * from users where id = ".$pid;
$result = mysqli_query($link,$sql);
$rows = mysqli_fetch_all($result,MYSQLI_ASSOC);
if($rows!=[]&&$rows!=null&&$rows!=""&&$rows!=0){
	$newRow['piddata'] = $rows;
}
$sql = "select * from actiontitle where sid = ".$sid;
$result = mysqli_query($link,$sql);
$rows = mysqli_fetch_all($result,MYSQLI_ASSOC);
if($rows!=[]&&$rows!=null&&$rows!=""&&$rows!=0){
	$newRow['siddata'] = $rows;
}
echo json_encode($newRow);
?>